package com.developer.platform.infrastructure.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.developer.platform.domain.NoticeAggregateRoot;
import com.developer.platform.infrastructure.data.po.Notice;
import java.util.List;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

/**
 * @author ：qiaoliang
 * @date ：2020-10-28
 */
@Component
public interface NoticeMapper extends BaseMapper<Notice> {

  IPage<Notice> selectPage(IPage<Notice> page, @Param("groupId") Long groupId, @Param("templateId")Long templateId,
      @Param("status") String status, @Param("userIds") List<Long> userIds);

  NoticeAggregateRoot selectById(@Param("id") Long id);

}
